


package Chat.Run;

import Chat.System.*;
import Chat.Donnees.Contact;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Pour tester l'envoie de fichier
 *
 * @author Ndanja & Papa Abdou
 */
public class TestEnvoieReseau {
    public static void main(String[] args) {
        //Contact lecontact = new Contact("toto","172.17.59.74" );
        ChatNI leNi2=new ChatNI();
        ChatController cont = new ChatController();
        leNi2.setController(cont);
        cont.setNI(leNi2);
        leNi2.startListenting();
        //leNi2.sendBye(lecontact);

 InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            String line = br.readLine();
            Contact c = new Contact(null, null);

           // cont.newMessage(line, );
        } catch (IOException ex) {
            Logger.getLogger(TestEnvoieReseau.class.getName()).log(Level.SEVERE, null, ex);
        }



    }


}
